package com.office.service.impl;

import com.office.bean.TMajor;
import com.office.bean.TmajorType;
import com.office.mapper.MajorMapper;
import com.office.service.MajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MajorServiceimpl implements MajorService {
    @Autowired
    MajorMapper majorMapper;

    @Override
    public int findEmpusercount() {
        return majorMapper.findEmpusercount();
    }

    @Override
    public List<TMajor> findMajorBypage(Map<String, Object> map) {
        return majorMapper.findMajorBypage(map);
    }

    @Override
    public int addMajor(TMajor tMajor) {
        return majorMapper.addMajor(tMajor);
    }

    @Override
    public boolean delectMajor(int id) {
        return majorMapper.delectMajor(id);
    }

    @Override
    public int updateMajor(TMajor tMajor) {
        return majorMapper.updateMajor(tMajor);
    }

    @Override
    public List<TMajor> findallMajor() {
        return majorMapper.findallMajor();
    }

    @Override
    public TMajor findmajorbyid(int id) {
        return majorMapper.findmajorbyid(id);
    }

    @Override
    public List<TmajorType> findMajorType() {
        return majorMapper.findMajorType();
    }
}
